<template>
  <section>
    <h3></h3>
    <span>星数：</span>
    <p>是否发布：</p>
    <p></p>
  </section>
</template>

<script>
// 使用TypeScript时
export default {
  name: "BlogPost2",
  props: {
    title: String,
    likes: Number,
    isPublished: Boolean,
    commendIds: Array,
    author: Object,
    callback: Function,
    contactsPromise: Promise // 或其他构造函数
  }
};
</script>